package sctu.edu.java.year2016.team02.wanggaowen.day20160521.chapter4_3;

/**
 * Created by 15c on 2016/5/24.
 */
public class Work4_3 {
    public static void main(String[] args){
        float sum=0;float a=1;
        while (a<21){
            sum=sum+1/a;a++;
        }
        System.out.println(sum);
    }
}
